import { useUserStore } from '@/stores/user'

export default {
  /* ... */
  mounted(el, binding) {
    //el 指令所在的元素元素-
    // binding.value  指令后面传入的值
    console.log(el, '#######')
    console.log(binding.value)
    const userStore = useUserStore()
    //userStore.permissionBtnList?.includes('productUpdate')
    if (userStore.permissionBtnList?.includes(binding.value) == false) {
      //如果按钮权限中没有这个按钮，就把 按钮删除
      el.remove()
    }
  },
}
